import React from 'react';
import Login from './src/page/login';
import Index from './src/page/home/index';
import RootNavigator from './src/test/stack';
import RootTabs from './src/test/Tab';
import RootDrawer from './src/test/DrawerNavigator';

export default class App extends React.Component {
    constructor(props) {
        super(props);

        this.state = {logined: false};
    }
    render() {

        return (
            (!this.state.logined)? <Login login={(data) => {this.setState({logined:true})}}/>:<Index/>
        );
    }
}
